import instance from "@/utils/request";

let baseType={
    //分页查询
    searchPage(parems){
        return instance.get(`base-type/findAllPageByPage`,{params:parems})
    },
    //添加
    addEntity(entity){
        return instance.post(`base-type`,entity)
    },
    //查询根据id查询
    findById(id){
        return instance.get(`base-type/${id}`)
    },
    //修改
    updateEntity(entity){
        return instance.put(`base-type`,entity)
    },
    /**
     * 删除
     */
    deleteById(id){
        return instance.delete(`base-type/${id}`)
    },
    /**
     * 批量删除
     */
    batchDelete(ids){
        return instance.delete(`base-type/batch/${ids}`)
    },
}

export default baseType;